import {HttpClient} from '@angular/common/http';
import { Component, Input, OnInit, Output } from '@angular/core';
import { Router, ActivatedRoute, ParamMap } from '@angular/router';
import {FormControl, FormGroupDirective, NgForm, Validators} from '@angular/forms';
import {ErrorStateMatcher} from '@angular/material/core';


/** Error when invalid control is dirty, touched, or submitted. */
export class MyErrorStateMatcher implements ErrorStateMatcher {
  isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {
    const isSubmitted = form && form.submitted;
    return !!(control && control.invalid && (control.dirty || control.touched || isSubmitted));
  }
}

@Component({
  selector: 'app-role-addor-edit',
  templateUrl: './role-addor-edit.component.html',
  styleUrls: ['./role-addor-edit.component.css']
})
export class RoleAddorEditComponent implements OnInit {
  roleId:number;
  roleName:string;

  constructor() { }

  ngOnInit(): void {
  }

}
